package com.example.hyw.szysteam.model;

import com.example.hyw.szysteam.POJO.HomeWork;
import com.example.hyw.szysteam.POJO.HttpResult;
import com.example.hyw.szysteam.POJO.Practice;
import com.example.hyw.szysteam.http.RetrofitManager;

import java.util.ArrayList;
import java.util.Date;
import io.reactivex.Observable;


/**
 * Created by HYW on 2018/6/14.
 */

public class HomeWorkModel {
    public Observable<HttpResult<String>> createHomeWork(String classid, String testname, String date, String practices){
        return RetrofitManager.getInstance().getRetrofitApiService().createhomework(classid,testname,date,practices);
    }

    public Observable<HttpResult<ArrayList<HomeWork>>> getHomeWork(String classid){
        return RetrofitManager.getInstance().getRetrofitApiService().gethomework(classid);
    }
}
